<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
window.onload=function()
{
		var oUl = document.getElementById('ul1');
	
	 for(var i =0; i < oUl.children.length;i++)
			{
						oUl.children[i].style.background = 'red';

			}
};
</script>
</head>

<body>
<ul id="ul1">
	<li></li>
	<li></li>
</ul>
</body>
</html>
